﻿using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using AForge.Video;
using AForge.Video.DirectShow;
using AForge.Video.VFW;
using AForge.Video.FFMPEG;
using System.Drawing.Imaging;
using System.IO.Ports;

using System.IO;

namespace WebCam
{

    public class video
    {
        SerialPort serialWrite = new SerialPort("COM2", 9600);

        private bool DeviceExist = false;
        private FilterInfoCollection videoDevices;
        private VideoCaptureDevice videoSource1 = null;
        private VideoCaptureDevice videoSource2 = null;
        public VideoFileWriter writer;
        public Bitmap videoa;
        public void Grabar()
        {
            writer = new VideoFileWriter();
            writer.Open(@"D:\\testvvid.avi", 1280, 800, 15, VideoCodec.Default, 128);
        
        }




    }
    
}
